﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpCrack
{
	/// <summary>
	/// 
	/// </summary>
	public class ChainWordTransform : WordTransform
	{
		public ChainWordTransform()
		{
			this.Transforms = new List<WordTransform>();
		}

		/// <summary>
		/// 
		/// </summary>
		public IList<WordTransform> Transforms { get; private set; }

		public override string Transform(string word)
		{
			string result = word;

			foreach (WordTransform wt in this.Transforms)
				result = wt.Transform(result);

			return result;
		}
	}
}
